module("NetWork.Action.GetServerSmAction ", package.seeall)

local NetCmdActionBase = require("NetWork.Action").NetCmdActionBase

GetServerSmAction = NetCmdActionBase:new()

function GetServerSmAction:Action(bytes)
    local GetServerSm = require("Protol.commonMessage_pb").GetServerSm()
    GetServerSm:ParseFromString(bytes)
    if GetServerSm.code ~= 0 then
        local UIWinMgr = require("UI.UIWinMgr").UIWinMgr
        UIWinMgr:OpenErrorNotice(GetServerSm.code)
        return
    end
    local ClubModule = require("Module.ClubModule").ClubModule
    ClubModule.GetServerSm(GetServerSm)
end

require("NetWork.NetCmdSet").CmdSet[2101] = GetServerSmAction --注册处理对象